﻿
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using ABC.Domain.Entities;
using ABC.Domain.Enums;

namespace ABC.Controllers.ViewModels.My
{
    public class MyNewClientViewModel : BaseViewModel
    {
        public string NewClientId { get; set; }

        [Required]
        public string FirstName { get; set; }

        public string LastName { get; set; }

        public string MiddleName { get; set; }

        public string Sex { get; set; }

        public string Company { get; set; }

        public string Post { get; set; }

        public string Avatar { get; set; }

        public string Department { get; set; }
        
        public string PhoneType { get; set; }

        [Required]
        [RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}")]

        public string EmailType { get; set; }

        public string Notes { get; set; }

        public string AddressType { get; set; }

        public string DateLawToCar { get; set; }

        public string BirthDay { get; set; }

        public bool ErrorName { get; set; }

        public bool WarningEmail { get; set; }

        public List<FieldWithDrop> ListPhones { get; set; }

        public List<FieldWithDrop> ListEmails { get; set; }

        public List<FieldWithDrop> ListIm { get; set; }

        public List<FieldWithDrop> ListSocNetworks { get; set; }

        public List<FieldWithDrop> ListAddresses { get; set; }

        public MyNewClientViewModel()
        {
            ListPhones = new List<FieldWithDrop>();
            ListIm = new List<FieldWithDrop>();
            ListEmails = new List<FieldWithDrop>();
            ListSocNetworks = new List<FieldWithDrop>();
            ListAddresses = new List<FieldWithDrop>();
        }
    }


}
